#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a[20] = { 6,9,12,15,19,23,45,67,89,98 }, x;
	int k, i, n;
	printf("please enter x:");
	scanf("%d", &x);
	for (i = 0; i < 20; i++)
		if (x < a[i]) break;
	k = i;
	for (i = 10; i >= k; i--)
		a[i + 1] = a[i];
	a[k] = x;
	for (i = 0; i < 20; i++)
		printf("%d  ", a[i]);
	return 0;
	
}